package com.fortune.rainshinecommon.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fortune.rainshinecommon.base.BaseModel;

import java.math.BigDecimal;

/**
 * @program: rainShine
 * @description: 销售详情表
 * @author: tangyn
 * @create: 2019-05-19
 **/
@TableName("sale_detail")
public class SaleDetailModel extends BaseModel {

    private static final long serialVersionUID = -4464230734410454793L;

    private int productId;//产品id
    private int quantity;//产品数量
    private String saleCode;//销售编号
    private BigDecimal productPrice;//产品单价
    private BigDecimal totalPrice;//订单总价
    @TableField(exist = false)
    private String productName;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getSaleCode() {
        return saleCode;
    }

    public void setSaleCode(String saleCode) {
        this.saleCode = saleCode;
    }

    public BigDecimal getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }
}
